#!/usr/bin/env python
#coding=utf-8
from flask import render_template,url_for,redirect,request,jsonify,Response
from Applications.libs.redprint import Redprint
from Applications.libs import utils
from Applications.services.MusicService import musicService
import json


music_redprint = Redprint('music')
@music_redprint.route('/list',methods=['get'])
def Default():

    list,pagecount,totalcount = musicService.music_list()


    return render_template('aticles_list.html',
                           list = list
                           )
    #identity = get_jwt_identity()

    #list = linksService.links_list()


    '''
    return render_template('home.html',
                           linklist=list,
                           db=json.dumps(list,cls=utils.AlchemyEncoder)
                           )'''